package testing;

import java.sql.SQLException;
import junit.framework.Assert;
import org.junit.Test;

import acm.*;

public class JUnitFacilSQL {		

	FacilSQL c = new FacilSQL();
	
	
@Test
public void prueba1()throws SQLException{
	
	String resultSELECT="";
	
	resultSELECT=c.separarTabla("CREATE TABLE table2 (field3 type3, field4 type4, field5 type5, field6 type6)");
	System.out.println(resultSELECT);
}

@Test
public void prueba2()throws SQLException{
	
	String resultSELECT="";
	//Validacion de espacios
	resultSELECT=c.separarTabla("CREATE TABLE table2 (field3 type3, field4 type4, field5 type5, field6 type6)");
	System.out.println(resultSELECT);
	
}


@Test
public void prueba3()throws SQLException{
	
	String resultSELECT="";
	//validacion de espacios
	resultSELECT=c.separarTabla("CREATE TABLE table2 (field3 type3,   field4 type4, field5 type5, f  ield6 type6)");
	System.out.println(resultSELECT);
}

@Test
public void prueba4()throws SQLException{
	
	String resultSELECT="";
	//validacion de espacios
	resultSELECT=c.separarTabla("CREATE TABLE table2 (field3        type3  ,    field4   type4, field5 type5, field6 type6)");
	System.out.println(resultSELECT);
	
}

@Test
public void prueba5()throws SQLException{
	
	String resultSELECT="";
	
	resultSELECT=c.separarTabla("CREATE TABLE table2 (field3 type3, field4 type4, field5 type5, field6 type6      )");
	System.out.println(resultSELECT);
}

@Test
public void prueba6()throws SQLException{
	
	String resultSELECT="";
	
	resultSELECT=c.separarTabla("CREATE      TABLE  table2  (field3  type3    ,     field4 type4, field5 type5, field6 type6)");
	System.out.println(resultSELECT);
}


}